package com.neusoft.tijiancms.controller;

import java.util.List;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.tijiancms.po.CiDetailedReport;
import com.neusoft.tijiancms.service.CiDetailedReportService;

@RestController
@RequestMapping("/ciDetailedReport")
@Slf4j
public class CiDetailedReportController {

	@Autowired
	private CiDetailedReportService ciDetailedReportService;

	/**
	 * 填写报告小项
	 * @param list
	 * @return
	 */
	@RequestMapping("/updateCiDetailedReport")
	public int updateCiDetailedReport(@RequestBody List<CiDetailedReport> list) {
		log.info("填写体检报告小项:{}",list);

		return ciDetailedReportService.updateCiDetailedReport(list);
	}
}
